package com.d;

import com.dtflys.forest.config.ForestConfiguration;
import com.dtflys.forest.springboot.annotation.ForestScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableTransactionManagement
@MapperScan("com.ding.*.dao")
@SpringBootApplication(scanBasePackages = {"com.d"},exclude={DataSourceAutoConfiguration.class})
@EnableSwagger2
@EnableScheduling
@ForestScan(basePackages = "com.ding.client")
public class DingClientApplication {
	public static void main(String[] args) {
		SpringApplication.run(DingClientApplication.class, args);
		System.out.println( "ヾ(◍°∇°◍)ﾉﾞ ding-approval启动成功 ヾ(◍°∇°◍)ﾉﾞ ");
	}

	@Bean
	public ForestConfiguration forestConfiguration() {
		ForestConfiguration configuration = ForestConfiguration.configuration();
		// 配置 Forest 的相关属性
		return configuration;
	}
}
